package com.bigdata.demo.service.letter;

import com.bigdata.demo.service.ServiceMultiResult;
import com.bigdata.demo.service.ServiceResult;
import com.bigdata.demo.service.search.CRIndexMessage;
import com.bigdata.demo.web.dto.CRDTO;
import com.bigdata.demo.web.dto.ECMLetterDTO;
import com.bigdata.demo.web.form.CRReportSearch;
import com.bigdata.demo.web.form.ECMLetterSearch;

import java.util.List;

/**
 * 检索接口
 */
public interface ISearchDocService {

    void createOrUpdateIndex(DocIndexMessage message);

    ServiceMultiResult<ECMLetterDTO> query(ECMLetterSearch ecmLetterSearch);

    /**
     * 获取补全建议关键词
     */
    ServiceResult<List<String>> suggest(String prefix);


}
